<?php
use yii\helper\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\acti;

/* @var $this yii\web\View */
/* @var $model app\models\Log */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="log-form">
    <?php
        if ($model->hasErrors()) {
            \yii\bootstrap\Alert::begin(
                [
                    'options' => [
                        'class' => 'alert-warning',
                    ]
                ]
            );
            echo Html::errorSummary($model);
            \yii\bootstrap\Alert::end();
        }
    ?>


    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'rz_shijian')->textInput(['maxlength' => true]) ?>



    <?= Html::activeHiddenInput($model,'rz_datetime',array('value'=>date("Y-m-d H:i:s"))) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加' : '保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
        <?= Html::a('返回',['index'], ['class' =>'btn btn-warning' ]) ?>

    </div>

    <?php ActiveForm::end(); ?>

</div>
